package com.kantboot.business.bp.web.contrller;

import com.kantboot.business.bp.service.IBusBpSubjectService;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 学科的控制器
 */
@RestController
@RequestMapping("/bus/bp/subject")
public class BusBpSubjectController {

    @Resource
    private IBusBpSubjectService service;

    @RequestMapping("/getAll")
    public RestResult getAll() {
        return RestResult.success(service.getAll(),"getSuccess","获取成功");
    }

}
